import request from "@/utils/request";

// 获取地图数据
export const getBaseMap = (params: any) => {
  return request({
    url: "/screen/secondHouse/getBaseMap",
    method: "get",
    params: params,
  });
};

// 1商品房新开工面积统计
export const getPersonHouseNumber = (params: any) => {
  return request({
    url: "/screen/develop/getDevelopStatistics",
    method: "post",
    data: params,
  });
};

// 获取全省房屋竣工面积结构统计
export const getSecondHouseTradeAreaAndNumber = (params: any) => {
  return request({
    url: "/screen/develop/getHouseJGStatistics",
    method: "post",
    data: params,
  });
};

// 获取商品住宅新开工面积统计
export const getPersonHouseFundStatistics = (params: any) => {
  return request({
    url: "/screen/develop/getHouseStartStatistics",
    method: "post",
    data: params,
  });
};

// 获取各地房地产在建面积统计
export const getSecondHouseSaleTrend = (params: any) => {
  return request({
    url: "/screen/develop/getHouseZJStatistics",
    method: "post",
    data: params,
  });
};

//3房地产开发投资额统计
export const getPersonHouseStatistics = (params: any) => {
  return request({
    url: "/screen/develop/getDevelopStatistics",
    method: "post",
    data: params,
  });
};

//2房屋竣工面积统计
export const getSecondHouseSalePriceAndArea = (params: any) => {
  return request({
    url: "/screen/develop/getDevelopStatistics",
    method: "post",
    data: params,
  });
};

//4房地产开发负债额统计
export const getVacantHouseTrend = (params: any) => {
  return request({
    url: "/screen/develop/getDevelopStatistics",
    method: "post",
    data: params,
  });
};
